﻿<%@ Page Language="C#" MasterPageFile="~/JOINT/MstPage_JOINT.master" AutoEventWireup="true"
    ValidateRequest="false" CodeFile="frmJ_IntroCompBasicInputCheck.aspx.cs" Inherits="JOINT_frmJ_CompBasicInput"
    Culture="ja-JP" UICulture="ja" Title="新規派遣元企業情報登録（確認）" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    新規派遣元企業情報登録（確認）
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <link href="../Style/JsStyle.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery-1.4.1.min.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript" src="../js/jquery.maskedinput.js"></script>

    <script language="javascript" type="text/javascript" src="../js/jquery.maxlength.js"></script>

    <script language="javascript" type="text/javascript" src="../js/Validation.js"></script>

    <script type="text/javascript" src="../Js/jquery.ba-hashchange.js"></script>

    <script type="text/javascript">
        $(function() {
            // Bind the event.
            $(window).hashchange(function() {
                //--------Cach 1--------//            
                //            setTimeout("preventBack()", 0);
                //            window.onunload = function() { void (0); };

                //--------Cach 2-------//
                noBack();
                window.onload = noBack;
                window.onpageshow = function(evt) { if (evt.persisted) noBack(); }
                window.onunload = function() { void (0); }
            })
            // Trigger the event (useful on page load).
            $(window).hashchange();
        });

        function preventBack() {
            //javascript: window.history.forward(1);
            if (history.length > 0) {
                history.go(+1);
            }
        }

        function noBack() {
            if (history.length > 0) {
                history.go(+1);
            }
        }
    </script>

    <script language="javascript" type="text/javascript">
        function ReplaceAll(Source, stringToFind, stringToReplace) { // so nhep vao cach 3 so thi co dau cham.
            var temp = Source;
            var index = temp.indexOf(stringToFind);
            while (index != -1) {
                temp = temp.replace(stringToFind, stringToReplace);
                index = temp.indexOf(stringToFind);
            }
            return temp;
        }

        function mysplit(data) {

            var val = ReplaceAll(data, ',', '');
            var val_arr = val.split('');
            var mirror_val = '';
            var return_val = '';
            var num = 0;
            for (i = (val_arr.length - 1); i >= 0; i--) {
                if (num == 3) {
                    mirror_val += "," + val_arr[i];
                    num = 0;
                } else {
                    mirror_val += val_arr[i];
                }
                num++;
            }

            var mirror_val_arr = mirror_val.split('');

            for (i = (mirror_val_arr.length - 1); i >= 0; i--) {
                return_val += mirror_val_arr[i];
            }
            return return_val;
        }

        function splitThousand() {
            var el = $('#<%=HiddenField1.ClientID %>').val();
            var chuoi = el;

            //alert(chuoi);
            if (chuoi == "") return;
            var index_dot_end = chuoi.lastIndexOf('.');
            var result = "";

            if (index_dot_end != "-1") {//exits dot into numberics
                var data = chuoi.substring(0, index_dot_end);
                result = mysplit(data);

                var form_dot_end = chuoi.substring(index_dot_end, chuoi.length);
                if (form_dot_end.length == 2)
                    result += chuoi.substring(index_dot_end, chuoi.length) + '0';
                else if (form_dot_end.length == 1)
                    result += chuoi.substring(index_dot_end, chuoi.length) + '00';
                else
                    result += chuoi.substring(index_dot_end, index_dot_end + 3);
            }
            else {
                result = mysplit(chuoi);
            }

            $('#<%=txt_資本金.ClientID %>').text('');
            $('#<%=txt_資本金.ClientID %>').text(result);
            //document.getElementById('ctl00_ContentPlaceHolder1_txt_資本金').value = "12345,345";
        }
    </script>

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btn_登録" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
    <div class="maindiv1">
        <div id="div_Body" runat="server">
            <div>
                <%--<div class="Header1">
                    <span>＊: 必須</span>
                </div>--%>
                <span class="spantitle">本社情報</span>
                
                <div class="divborder1">
                    <div class="detail-admin-row">
                        <span class="detail-admin-label" style="font-weight: bold;">企業名 :</span>
                        <div style="margin-top: 2px;">
                            <asp:Label ID="txt_企業名" runat="server" Style="word-wrap: break-word;" Width="415px"
                                Font-Names="MS UI Gothic"></asp:Label>
                            &nbsp;</div>
                    </div>
                    <div class="detail-admin-row">
                        <span class="detail-admin-label" style="font-weight: bold;">フリガナ :</span>
                        <div style="margin-top: 2px;">
                            <asp:Label ID="txt_企業名フリガナ" runat="server" Style="word-wrap: break-word;" Width="415px"
                                Font-Names="MS UI Gothic"></asp:Label></div>
                    </div>
                    <div class="detail-admin-row">
                        <span class="detail-admin-label" style="font-weight: bold;">省略名称 :</span>
                        <div style="margin-top: 2px;">
                            <asp:Label ID="txt_企業名省略名称" runat="server" Style="word-wrap: break-word;" Width="415px"
                                Font-Names="MS UI Gothic"></asp:Label></div>
                    </div>
                    <div class="detail-admin-row">
                        <span class="detail-admin-label" style="font-weight: bold;">住所 :</span>
                        <div style="margin-top: 2px;">
                            <asp:Label ID="txt_住所" runat="server" Style="word-wrap: break-word;" Width="415px"
                                Font-Names="MS UI Gothic"></asp:Label></div>
                    </div>
                    <div class="detail-admin-row">
                        <span class="detail-admin-label" style="font-weight: bold;">ＴＥＬ :</span>
                        <div style="margin-top: 2px;">
                            <asp:Label ID="txt_ＴＥＬ1" runat="server"></asp:Label>
                            &nbsp;
                        </div>
                    </div>
                    <div class="detail-admin-row">
                        <span class="detail-admin-label" style="font-weight: bold;">FAX番号 :</span>
                        <div style="margin-top: 2px;">
                            <asp:Label ID="txt_FAX1" runat="server"></asp:Label>
                            &nbsp;</div>
                    </div>
                    <div class="detail-admin-row">
                        <span class="detail-admin-label" style="font-weight: bold;">設立年月日 :</span>
                        <div style="margin-top: 2px;">
                            <asp:Label ID="txt_設立年月日" runat="server" Font-Names="MS UI Gothic"></asp:Label></div>
                    </div>
                    <div class="detail-admin-row">
                        <span class="detail-admin-label" style="font-weight: bold;">資本金 :</span>
                        <div style="margin-top: 2px;">
                            <asp:Label ID="txt_資本金" runat="server" Font-Names="MS UI Gothic" onkeypress="return numbersonly2(this, event);"></asp:Label>
                            VND</div>
                    </div>
                    <div class="detail-admin-row">
                        <span class="detail-admin-label" style="font-weight: bold;">業種分類 :</span>
                        <div style="margin-top: 2px;">
                            <asp:Label ID="txt_業種分類" runat="server" Style="word-wrap: break-word;" Width="415px"
                                Font-Names="MS UI Gothic"></asp:Label>
                        </div>
                    </div>
                    <div class="detail-admin-row">
                        <span class="detail-admin-label" style="font-weight: bold;">事業内容 :</span>
                        <div style="margin-top: 2px;">
                            <asp:Label ID="ddl_事業内容" runat="server" Font-Names="MS UI Gothic">
                        
                            </asp:Label></div>
                    </div>
                    <asp:Panel ID="Panel1" runat="server">
                        <div class="detail-admin-row">
                            <span class="detail-admin-label" style="font-weight: bold;">事業内容その他 :</span>
                            <div style="margin-top: 2px;">
                                <asp:Label ID="lbl_事業内容その他" Style="word-wrap: break-word;" Width="415px" runat="server"
                                    Font-Names="MS UI Gothic">
                        
                                </asp:Label></div>
                        </div>
                    </asp:Panel>
                    <div class="detail-admin-row">
                        <span class="detail-admin-label" style="font-weight: bold;">主要製品 :</span>
                        <div style="margin-top: 2px;">
                            <asp:Label ID="txt_主要製品" runat="server" Style="word-wrap: break-word;" Width="415px"
                                Font-Names="MS UI Gothic"></asp:Label>
                        </div>
                    </div>
                    <div class="detail-admin-row">
                        <span class="detail-admin-label" style="font-weight: bold;">主要貿易（取引）相手国輸出先 :</span>
                        <div style="margin-top: 2px;">
                            <asp:Label ID="txt_主要貿易取引相手国輸出先" runat="server" Style="word-wrap: break-word;" Width="415px"
                                Font-Names="MS UI Gothic">
                            </asp:Label>
                        </div>
                    </div>
                    <div class="detail-admin-row">
                        <span class="detail-admin-label" style="font-weight: bold;">主要貿易（取引）相手国輸入先 :</span>
                        <div style="margin-top: 2px;">
                            <asp:Label ID="txt_主要貿易取引相手国輸入先" runat="server" Style="word-wrap: break-word;" Width="415px"
                                Font-Names="MS UI Gothic"></asp:Label>
                        </div>
                    </div>
                </div>
                <%--<div>
                </div>--%>
                <%--<div class="headerLineAndGray">
                    </div>
                    <div>
                        &nbsp;</div>--%>
                <%--<div class="headerLineAndGray">--%>
                <span class="spantitle">代表者1情報</span></div>
            <%--<div>--%>
            <div class="divborder1">
                <div class="detail-admin-row">
                    <span class="detail-admin-label" style="font-weight: bold;">氏名 :</span>
                    <div style="margin-top: 2px;">
                        <asp:Label ID="txt_代表者１氏名" runat="server" Font-Names="MS UI Gothic"></asp:Label>
                    </div>
                </div>
                <div class="detail-admin-row">
                    <span class="detail-admin-label" style="font-weight: bold;">フリガナ :</span>
                    <div style="margin-top: 2px;">
                        <asp:Label ID="txt_代表者１氏名フリガナ" runat="server" Font-Names="MS UI Gothic"></asp:Label>
                    </div>
                </div>
                <div class="detail-admin-row">
                    <span class="detail-admin-label" style="font-weight: bold;">役職 :</span>
                    <div style="margin-top: 2px;">
                        <asp:Label ID="ddl_代表者１役職" runat="server" Font-Names="MS UI Gothic">
                        </asp:Label>
                    </div>
                </div>
                <div class="detail-admin-row">
                    <span class="detail-admin-label" style="font-weight: bold;">ＴＥＬ :</span>
                    <div style="margin-top: 2px;">
                        <asp:Label ID="txt_代表者１ＴＥＬ1" runat="server"></asp:Label>
                        &nbsp; &nbsp;</div>
                </div>
                <div class="detail-admin-row">
                    <span class="detail-admin-label" style="font-weight: bold;">就任年月日 :</span>
                    <div style="margin-top: 2px;">
                        <asp:Label ID="txt_代表者１就任年月日" runat="server" Font-Names="MS UI Gothic"></asp:Label></div>
                </div>
            </div>
        </div>
        <%--<div class="headerLineAndGray">
                </div>--%>
        <%--<div>
                    </div>--%>
        <%--<div class="headerLineAndGray">--%>
        <span class="spantitle">代表者2情報</span><%--</div>--%>
        <%--<div>--%>
        <div class="divborder1">
            <div class="detail-admin-row">
                <span class="detail-admin-label" style="font-weight: bold;">氏名 :</span>
                <div style="margin-top: 2px;">
                    <asp:Label ID="txt_代表者２氏名" runat="server" Font-Names="MS UI Gothic"></asp:Label></div>
            </div>
            <div class="detail-admin-row">
                <span class="detail-admin-label" style="font-weight: bold;">フリガナ :</span>
                <div style="margin-top: 2px;">
                    <asp:Label ID="txt_代表者２氏名フリガナ" runat="server" Font-Names="MS UI Gothic"></asp:Label></div>
            </div>
            <div class="detail-admin-row">
                <span class="detail-admin-label" style="font-weight: bold;">役職 :</span>
                <div style="margin-top: 2px;">
                    <asp:Label ID="ddl_代表者２役職" runat="server" Font-Names="MS UI Gothic">
                       
                    </asp:Label></div>
            </div>
            <div class="detail-admin-row">
                <span class="detail-admin-label" style="font-weight: bold;">ＴＥＬ :</span>
                <div style="margin-top: 2px;">
                    <asp:Label ID="txt_代表者２ＴＥＬ1" runat="server"></asp:Label>
                    &nbsp;</div>
            </div>
            <div class="detail-admin-row">
                <span class="detail-admin-label" style="font-weight: bold;">携帯ＴＥＬ :</span>
                <div style="margin-top: 2px;">
                    <asp:Label ID="txt_代表者２携帯ＴＥＬ1" runat="server"></asp:Label>
                    &nbsp;</div>
            </div>
            <div class="detail-admin-row">
                <span class="detail-admin-label" style="font-weight: bold;">就任年月日 :</span>
                <div style="margin-top: 2px;">
                    <asp:Label ID="txt_代表者２就任年月日" runat="server" Font-Names="MS UI Gothic"></asp:Label>
                </div>
            </div>
        </div>
    </div>
    <%--<div class="headerLineAndGray">
                </div>
                <div>
                </div>--%>
    <%--<div class="headerLineAndGray">--%>
    <span class="spantitle">担当1情報</span><%--</div>--%>
    <%--<div>
                    </div>--%>
    <%--<div class="detail-admin-row">
                        <span class="detail-admin-label">社員 :</span>
                        <asp:Label ID="ddl_担当１社員ID" runat="server" Font-Names="MS UI Gothic">
                        
                        </asp:Label>
                        <span class="required-field"></span>
                    </div>--%>
    <div class="divborder1">
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">氏名 :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="txt_担当１氏名" runat="server" Font-Names="MS UI Gothic"></asp:Label>
                &nbsp;</div>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">部署名 :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="txt_担当１部署名" runat="server" Font-Names="MS UI Gothic"></asp:Label>
                &nbsp;</div>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">役職 :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="ddl_担当１役職" runat="server" Font-Names="MS UI Gothic">
                </asp:Label></div>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">メールアドレス :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="txt_担当１メールアドレス" runat="server" Style="word-wrap: break-word;" Width="415px"
                    Font-Names="MS UI Gothic"></asp:Label>
                &nbsp;</div>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">直通ＴＥＬ :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="txt_担当１直通ＴＥＬ1" Font-Names="MS UI Gothic" runat="server"></asp:Label>
                &nbsp;&nbsp;</div>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">携帯ＴＥＬ :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="txt_担当１携帯ＴＥＬ1" Font-Names="MS UI Gothic" runat="server"></asp:Label>
                &nbsp;
            </div>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">就任年月日 :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="txt_担当１就任年月日" runat="server" Font-Names="MS UI Gothic"></asp:Label></div>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">コメント :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="txt_担当１コメント" runat="server" Style="word-wrap: break-word;" Width="415px"
                    Font-Names="MS UI Gothic"></asp:Label>
            </div>
        </div>
    </div>
    <%--<div class="headerLineAndGray">
                    </div>--%>
    <%--  <div>
                    &nbsp;</div>--%>
    <%--<div class="headerLineAndGray">--%>
    <span class="spantitle">担当2情報</span><%--</div>--%>
    <%--<div>
                        &nbsp;</div>--%>
    <div class="divborder1">
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">氏名 :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="txt_担当２氏名" runat="server" Font-Names="MS UI Gothic"></asp:Label>
            </div>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">部署名 :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="txt_担当２部署名" runat="server" Font-Names="MS UI Gothic"></asp:Label></div>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">役職 :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="ddl_担当２役職" runat="server" Font-Names="MS UI Gothic">
                    
                </asp:Label></div>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">メールアドレス :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="txt_担当２メールアドレス" runat="server" Style="word-wrap: break-word;" Width="415px"
                    Font-Names="MS UI Gothic"></asp:Label>
            </div>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">直通ＴＥＬ :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="txt_担当２直通ＴＥＬ1" Font-Names="MS UI Gothic" runat="server"></asp:Label>
                &nbsp;
            </div>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">携帯ＴＥＬ :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="txt_担当２携帯ＴＥＬ1" Font-Names="MS UI Gothic" runat="server"></asp:Label>
                &nbsp;
            </div>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">就任年月日 :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="txt_担当２就任年月日" runat="server" Font-Names="MS UI Gothic"></asp:Label>
                &nbsp;</div>
        </div>
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">コメント :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="txt_担当２コメント" runat="server" Style="word-wrap: break-word;" Width="415px"
                    Font-Names="MS UI Gothic"></asp:Label></div>
        </div>
    </div>
    <%-- <div class="headerLineAndGray">
                </div>
                <div>
                    &nbsp;</div>--%>
    <%-- <div class="headerLineAndGray">--%>
    <span class="spantitle">その他</span>
    <%-- </div>--%>
    <%--<div>
                </div>--%>
    <div class="divborder1">
        <div class="detail-admin-row">
            <span class="detail-admin-label" style="font-weight: bold;">ウェブサイト :</span>
            <div style="margin-top: 2px;">
                <%--<asp:Label ID="txt_ウェブサイト" runat="server" Font-Names="MS UI Gothic"></asp:Label>--%>
                <asp:HyperLink ID="hpl_ウェブサイト" Font-Names="MS UI Gothic" Style="text-decoration: none;"
                    runat="server" Target="_blank"></asp:HyperLink>
            </div>
        </div>
        <div id="div_外国の推薦機関" class="detail-admin-row" runat="server">
            <span class="detail-admin-label" style="font-weight: bold;">外国の推薦機関 :</span>
            <div style="margin-top: 2px;">
                <asp:Label ID="txt_外国の推薦機関" runat="server" Style="word-wrap: break-word;" Width="415px"
                    Font-Names="MS UI Gothic"></asp:Label>
                &nbsp;</div>
        </div>
    </div>
    <div class="detail-admin-row">
        <span class="detail-admin-label">&nbsp;</span>
        <asp:Button ID="btn_登録" runat="server" Text="登録" CssClass="btn" OnClick="btn_登録_Click">
        </asp:Button>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btn_リセット" runat="server" Text="修正" CssClass="btn" OnClick="btn_リセット_Click">
        </asp:Button>
    </div>
    <div class="detail-admin-row">
        <div class="btn_back">
            <asp:Button ID="btn_戻る" OnClick="btn_戻る_Click" Visible="false" runat="server" CssClass="btn" Text="←戻る">
            </asp:Button>
        </div>
        <%--<div class="btn_next btn_next_fixedforfrmJ_StaffEnterInpu">
                        <asp:Button ID="btn_次" OnClick="btn_次_Click" runat="server" CssClass="btn" Text="次→">
                        </asp:Button>
                    </div>--%>
    </div>
    <div>
        &nbsp;</div>
    <br />
    <asp:HiddenField ID="HiddenField1" runat="server" />
</asp:Content>
